﻿<html>

<head>

<!--COMMON :include style and javascript code-->
${inc:/action/pub/common}

<title>录入阄票信息</title>

</head>

<body onmouseup="hidInputValidatorTip(3);">
<!--a name="A0" id="A0"></a-->

<!--COMMON HEADER-->
${inc:/action/pub/header}

<center>

<!--filter form-->
<div id="divFilter" style="display:none;width:100%">
</div>

<!--addnew/edit form-->
<div id="divEditor" style="display:none;width:100%">
</div>

<!--insert/update response-->
<div id="divEditorResponse" style="display:none;width:100%">
</div>

<!--grid view response-->
<div id="response" style="display:none;width:100%">
</div>

<!--progress indicator-->
<div id="divStatus" class="alert" style="text-align:left; display:none;color:gray;width:150px;font-weight:bold;font-family:Arial">
	<img src="${def:context}/images/progress.gif"> 请稍候...
</div>

<!--show linked grid-->
<iframe id="detail" name="detail" marginwidth="0" scrolling="no" frameborder="0" style="height:0%;width:100%;visibility:hidden">
</iframe>

<!--用于传递当前目录到header模版中-->
<input type="hidden" name="actionroot" id="actionroot" value="${def:actionroot}">

</center>

</body>

</html>

<SCRIPT LANGUAGE="JavaScript">

//设置界面元素数据验证逻辑
function setKeyPress(){
    return true;
}

//字段校验
function checkFields(){
    return true;
}
</SCRIPT>



<script type="text/javascript">


function searchBack(){
    document.getElementById("divFilter").style.display = "";
    return true;
}

function addNewBackSetting(){
    return true;
}

function detailHidden()
{
	parent.formHidden();
}

function getHouseFlat(location_id,room_type_id,serial_no)
{
	var url = "${def:actionroot}/gethouseflat?location_id="+location_id+"&room_type_id="+room_type_id+"&serial_no="+serial_no;
	ajaxCall(httpMethod="GET", 
			uri=url, 
			divResponse=null, 
			divProgress="divStatus", 
			formName=null, 
			afterResponseFn=null, 
			onErrorFn=null);
}


function updateJiupiao(id,zhuajiu_tuid){
		var sheight = 300;
		var swidth = 400;
		var features = "dialogWidth:"+swidth+"px;dialogHeight:"+sheight+"px;dialogLeft:400px;dialogTop:200px;help:no;status:no;scroll:yes;resizable:off";
		var url = "${def:context}${def:actionroot}/jiupiao?id=" +id+"&zhuajiu_tuid="+zhuajiu_tuid+"&random="+Math.random();

		var val = window.showModalDialog(url,'录入阄票',features);
		if(val == "1"){//更改后刷新页面
		search();
		}
}


//loadEditor();
loadFilter(showFilter);

</script>
    